<form id="topic_edit" onsubmit="updateTopic()" class="form-horizontal"  action="{{ path('topic_update', {'id': entity.id}) }}" method="post" {{ form_enctype(form) }}>
        {{ form_widget(form._token) }}
        <div class="form-group">
            {{ form_label(form.title, "Intitulé", { 'label_attr': { 'class': 'control-label col-lg-2' }} ) }}
            <div class="col-lg-3">
                {{ form_widget(form.title, { 'attr': { 'class': 'form-control input-small' }} ) }}
            </div>
        </div>
        <div class="form-group">
            {{ form_label(form.content, "Contenu", { 'label_attr': { 'class': 'control-label col-lg-2' }} ) }}
            <div class="col-lg-3">
                {{ form_widget(form.content, { 'attr': { 'class': 'form-control input-small', 'style': 'height:200px;'  }} ) }}
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-lg-2">Tags</label>
            <div class="col-lg-3">
                <input value="{% for t in entity.tags %} {{t }}{% endfor %}" id="tags_selected" class="form-control input-small" type="text" name="tags_selected" style="font-style:italic; color: #FF9900;"/>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-lg-2"></label>
            <div class="col-lg-3">
                <input id="tag_search" class="form-control input-small" type="text" name="tags" onkeyup="findTags('{{ path('topic_find_tag') }}', this);" placeholder="Recherchez des tags"/>
                <img style="display:none;" id="loading" src="{{ asset('images/ajax-loader.gif') }}"/>
                <div id="tag_results">

                </div>
            </div>
        </div>
        <div class="form-group">
            {{ form_label(form.statut, "Requête ouverte ?", { 'label_attr': { 'class': 'control-label col-lg-2' }} ) }}
            <div class="col-lg-3">
                {{ form_widget(form.statut, { 'attr': { 'class': 'form-control input-small' }} ) }}<br/>
                <button class="button small orange" type="submit">Modifier ma requête </button>
            </div>
                
        </div>
    </form>